package projetosig

import org.hibernatespatial.GeometryUserType

import com.vividsolutions.jts.geom.Geometry

class Rua {

	int gid
	int objectId
	String nomeLogradouro
	double shapeLength
	Geometry geom

	static constraints = {
		objectId nullable: true
		nomeLogradouro nullable: true
		shapeLength nullable: true
		geom nullable: true
	}

	static mapping = {
		table 'ruas'
		version false
		id name: 'gid'
		gid column: '`gid`'
		objectId column: '`OBJECTID`'
		nomeLogradouro column: '`NOME_LOGR`', length: 100
		shapeLength column: '`Shape_Leng`', sqlType: "numeric"
		geom column: '`geom`', type: GeometryUserType, sqlType: "Geometry", length: 16
	}
}